package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Ms.发发
 * @description
 * @date 2025/3/20 13:36
 **/
public interface IServeService extends IService<Serve> {

    public PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);

    void putOnShelf(Long id);

    void takeOffShelf(Long id);

    void deleteById(Long id);

    void onHot(Long id);

    void offHot(Long id);

    void updatePrice(Long id, BigDecimal price);

    void batchAdd(List<ServeUpsertReqDTO> serveTypeUpsertReqDTOList);
}

